package com.iplatform.file.function.meta.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * 
 * @author lvhao
 *
 */
@ApiModel(value = "数据列", description = "数据列")
public class DataColumnVo implements Serializable {


    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id", name = "id")
    private String id;
	
    @ApiModelProperty(value = "表列名称", name = "state", example = "类型",required = true)
	private String name;

    @ApiModelProperty(value = "表名", name = "tableCode", hidden=true)
	private String tableCode;
    
    @ApiModelProperty(value = "表列Code", name = "code", example = "type_code",required = true)
	private String code;

    @ApiModelProperty(value = "表列标识", name = "dataIndex", example = "data_index")
	private String dataIndex;

    @ApiModelProperty(value = "列类型", name = "columnType", example = "test",required = true)
	private String columnType;

    @ApiModelProperty(value = "是否是输出列", name = "isOut", example = "true",required = true)
	private Boolean isOut;
    
    @ApiModelProperty(value = "排序类型", name = "orderType", example = "desc",required = true)
	private String orderType;

    @ApiModelProperty(value = "列类型(字符时间数字)", name = "roleType", example = "string",required = true)
	private String roleType;
    
    @ApiModelProperty(value = "排序", name = "order", example = "1",required = false)
    private Integer order;
    
    @ApiModelProperty(value = "自定义的字段直接通过setId绑定数据包", name = "setId", example = "1",required = false)
	private String setId;
    
    @ApiModelProperty(value = "选中的字段绑定其对应的字段", name = "tableId", example = "1",required = false)
	private String tableId;
	
    @ApiModelProperty(value = "字段长度", name = "fieldSize", example = "1",required = false)
    private Integer fieldSize;
    
    @ApiModelProperty(value = "字段精度", name = "digits", example = "1",required = false)
    private Integer digits;
    
    @ApiModelProperty(value = "字段内容", name = "textarea", example = "1",required = false)
    private String textarea;
    
    @ApiModelProperty(value = "函数说明", name = "functionDetail", example = "1",required = false)
    private String functionDetail;
    
    @ApiModelProperty(value = "字段排序", name = "columnOrder", example = "1",required = false)
    private String columnOrder;
    
    
    /**
     * 	修改后的表列名称
     */
    private String newName;
    
	public String getFunctionDetail() {
		return functionDetail;
	}

	public void setFunctionDetail(String functionDetail) {
		this.functionDetail = functionDetail;
	}

	public Integer getFieldSize() {
		return fieldSize;
	}

	public void setFieldSize(Integer fieldSize) {
		this.fieldSize = fieldSize;
	}

	public Integer getDigits() {
		return digits;
	}

	public void setDigits(Integer digits) {
		this.digits = digits;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTableCode() {
		return tableCode;
	}

	public void setTableCode(String tableCode) {
		this.tableCode = tableCode;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDataIndex() {
		return dataIndex;
	}

	public void setDataIndex(String dataIndex) {
		this.dataIndex = dataIndex;
	}

	public String getColumnType() {
		return columnType;
	}

	public void setColumnType(String columnType) {
		this.columnType = columnType;
	}

	public Boolean getIsOut() {
		return isOut;
	}

	public void setIsOut(Boolean isOut) {
		this.isOut = isOut;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public String getRoleType() {
		return roleType;
	}

	public void setRoleType(String roleType) {
		this.roleType = roleType;
	}

	public String getSetId() {
		return setId;
	}

	public void setSetId(String setId) {
		this.setId = setId;
	}

	public String getTableId() {
		return tableId;
	}

	public void setTableId(String tableId) {
		this.tableId = tableId;
	}

	public Integer getOrder() {
		return order;
	}

	public void setOrder(Integer order) {
		this.order = order;
	}

	public String getNewName() {
		return newName;
	}

	public void setNewName(String newName) {
		this.newName = newName;
	}

	public String getTextarea() {
		return textarea;
	}

	public void setTextarea(String textarea) {
		this.textarea = textarea;
	}

	public String getColumnOrder() {
		return columnOrder;
	}

	public void setColumnOrder(String columnOrder) {
		this.columnOrder = columnOrder;
	}
	
}
